package com.gxy.learn.design.model.behaviour.command;

import java.util.HashMap;
import java.util.Map;

/**
 * @description: 订单类
 * @author: gaoxueyong
 * @Date: 2022/11/8 14:34
 */
public class Order {
//    餐桌号码
    private int diningTable;

//    所下餐品的份数
    private Map<String,Integer> foodDir = new HashMap<>();

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDir() {
        return foodDir;
    }

    public void setFood(String foodName,Integer orderNum) {
        foodDir.put(foodName, orderNum);
    }

}
